{template 'common/header'}
<div id="louie-list" class="row" data-url="{php echo $this->createWebUrl('api')}">
    <div id="louie-header">
        <h6>系统宝藏列表</h6>
        <a href="{php echo $this->createWebUrl('treasure_add')}" class="btn btn-default btn-sm header-right-btn">添加宝藏</a>
    </div>

    <table class="table table-bordered table-hover" v-if="list.length > 0">
        <tr><th>id</th><th>名称</th><th>图片</th><th>操作</th></tr>
        <tr v-for="item in list">
            <td>{{item.id}}</td>
            <td>{{item.name}}</td>
            <td><img v-bind:src="item.icon_url" style="width:70px;height:70px;"/></td>
            <td>
                <div class="btn-group">
                    <button type="button" class="btn btn-danger btn-xs" v-on:click="delData(item.id)" v-bind:data-id="item.id">删除</button>
                </div>
            </td>
        </tr>
    </table>
    <h6 v-else style="font-size:30px;text-align: center;color:#ccc;">暂无数据</h6>
    <paging v-on:change-page="changePage" v-bind:total="total" v-bind:return-num="returnNum"></paging>

    <v-dialog/><!--提示框-->
</div>
<script src="../addons/kuyuan_vbz/dist/web/treasure-list.js"></script>
{template 'common/footer'}
